Set options
knitr::opts_chunk$set(
warning = FALSE, # show warnings during codebook generation
message = FALSE, # show messages during codebook generation
error = TRUE, # do not interrupt codebook generation in case of errors,
# usually better for debugging
echo = TRUE # show R code
)
ggplot2::theme_set(ggplot2::theme_bw())
Prepare codebook
library(codebook)
library(labelled)
# Load data
codebook_data <- vroom::vroom(here::here("Data/Processed/Exp1/Kan_Processed_Exp1_Main_Rt_data.tsv"))
# Label variables
var_label(codebook_data$participant_id) <- "Unique identifier of the participant"
var_label(codebook_data$lab) <- "Unique identifier of the data collection site"
var_label(codebook_data$trial_id) <- "Unique identifier of a trial"
var_label(codebook_data$stim_type) <- "Congruency of the Stroop trial"
var_label(codebook_data$stimulus) <- "Word of the Stroop trial"
var_label(codebook_data$stim_color) <- "Ink of the Stroop trial"
var_label(codebook_data$response_time) <- "Response time to the Stroop trial in milliseconds"
var_label(codebook_data$is_previous_congruent) <- "Congruency of the previous trial"
var_label(codebook_data$is_congruent) <- "Congruency of the Stroop trial"
var_label(codebook_data$is_correct) <- "Correctness of the Stroop trial"
var_label(codebook_data$mean_rt) <- "Mean reaction time of the parcipant"
var_label(codebook_data$sd_rt) <- "Standard deviation of the reaction time of the participant"
var_label(codebook_data$cutoff_value_high) <- "Upper cutoff value for the trial"
var_label(codebook_data$cutoff_value_low) <- "Lower cutoff value for the trial"
var_label(codebook_data$is_outlier) <- "Flagging whether the trials' original response time was a low outlier (2), a high outlier (1) or not an outlier (0)"
Create codebook
codebook(codebook_data)
Dataset name: codebook_data
The dataset has N=4738 rows and 15 columns. 4738 rows have no missing values on any column.
Metadata for search engines
|
#Variables
Unique identifier of the participant
Distribution of values for participant_id
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| participant_id | Unique identifier of the participant | numeric | 0 | 1 | 109 | 2055 | 3054 | 1959.03 | 696.9908 | <U+2581><U+2585><U+2581><U+2587><U+2583> |
Unique identifier of the data collection site
Distribution of values for lab
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| lab | Unique identifier of the data collection site | character | 0 | 1 | 3 | 0 | 4 | 8 | 0 |
Unique identifier of a trial
Distribution of values for trial_id
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| trial_id | Unique identifier of a trial | numeric | 0 | 1 | 12 | 540 | 1016 | 513.5403 | 291.3311 | <U+2586><U+2587><U+2586><U+2586><U+2587> |
Congruency of the Stroop trial
Distribution of values for stim_type
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| stim_type | Congruency of the Stroop trial | character | 0 | 1 | 2 | 0 | 9 | 11 | 0 |
Word of the Stroop trial
Distribution of values for stimulus
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| stimulus | Word of the Stroop trial | character | 0 | 1 | 6 | 0 | 3 | 6 | 0 |
Ink of the Stroop trial
Distribution of values for stim_color
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| stim_color | Ink of the Stroop trial | character | 0 | 1 | 3 | 0 | 4 | 6 | 0 |
Response time to the Stroop trial in milliseconds
Distribution of values for response_time
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| response_time | Response time to the Stroop trial in milliseconds | numeric | 0 | 1 | 51 | 674 | 999 | 681.9847 | 139.9731 | <U+2581><U+2581><U+2586><U+2587><U+2583> |
Congruency of the previous trial
Distribution of values for is_previous_congruent
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| is_previous_congruent | Congruency of the previous trial | numeric | 0 | 1 | 0 | 0 | 1 | 0.4917687 | 0.499985 | <U+2587><U+2581><U+2581><U+2581><U+2587> |
Congruency of the Stroop trial
Distribution of values for is_congruent
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| is_congruent | Congruency of the Stroop trial | numeric | 0 | 1 | 0 | 0 | 1 | 0.4841705 | 0.4998021 | <U+2587><U+2581><U+2581><U+2581><U+2587> |
Correctness of the Stroop trial
Distribution of values for is_correct
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| is_correct | Correctness of the Stroop trial | numeric | 0 | 1 | 1 | 1 | 1 | 1 | 0 | <U+2581><U+2581><U+2587><U+2581><U+2581> |
Mean reaction time of the parcipant
Distribution of values for mean_rt
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| mean_rt | Mean reaction time of the parcipant | numeric | 0 | 1 | 420 | 681 | 904 | 682.1995 | 73.83225 | <U+2581><U+2583><U+2587><U+2586><U+2581> |
Standard deviation of the reaction time of the participant
Distribution of values for sd_rt
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| sd_rt | Standard deviation of the reaction time of the participant | numeric | 0 | 1 | 77 | 118 | 309 | 119.2952 | 21.13787 | <U+2587><U+2585><U+2581><U+2581><U+2581> |
Upper cutoff value for the trial
Distribution of values for cutoff_value_high
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| cutoff_value_high | Upper cutoff value for the trial | numeric | 0 | 1 | 722 | 986 | 1194 | 980.4375 | 85.74618 | <U+2581><U+2583><U+2587><U+2586><U+2581> |
Lower cutoff value for the trial
Distribution of values for cutoff_value_low
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| cutoff_value_low | Lower cutoff value for the trial | numeric | 0 | 1 | -353 | 378 | 703 | 383.9614 | 95.57778 | <U+2581><U+2581><U+2581><U+2587><U+2582> |
Flagging whether the trials’ original response time was a low outlier (2), a high outlier (1) or not an outlier (0)
Distribution of values for is_outlier
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| is_outlier | Flagging whether the trials’ original response time was a low outlier (2), a high outlier (1) or not an outlier (0) | numeric | 0 | 1 | 0 | 0 | 2 | 0.0086534 | 0.1013371 | <U+2587><U+2581><U+2581><U+2581><U+2581> |
JSON-LD metadata
The following JSON-LD can be found by search engines, if you share this codebook publicly on the web.
{
"name": "codebook_data",
"datePublished": "2021-01-28",
"description": "The dataset has N=4738 rows and 15 columns.\n4738 rows have no missing values on any column.\n\n\n## Table of variables\nThis table contains variable names, labels, and number of missing values.\nSee the complete codebook for more.\n\n|name |label | n_missing|\n|:---------------------|:-------------------------------------------------------------------------------------------------------------------|---------:|\n|participant_id |Unique identifier of the participant | 0|\n|lab |Unique identifier of the data collection site | 0|\n|trial_id |Unique identifier of a trial | 0|\n|stim_type |Congruency of the Stroop trial | 0|\n|stimulus |Word of the Stroop trial | 0|\n|stim_color |Ink of the Stroop trial | 0|\n|response_time |Response time to the Stroop trial in milliseconds | 0|\n|is_previous_congruent |Congruency of the previous trial | 0|\n|is_congruent |Congruency of the Stroop trial | 0|\n|is_correct |Correctness of the Stroop trial | 0|\n|mean_rt |Mean reaction time of the parcipant | 0|\n|sd_rt |Standard deviation of the reaction time of the participant | 0|\n|cutoff_value_high |Upper cutoff value for the trial | 0|\n|cutoff_value_low |Lower cutoff value for the trial | 0|\n|is_outlier |Flagging whether the trials' original response time was a low outlier (2), a high outlier (1) or not an outlier (0) | 0|\n\n### Note\nThis dataset was automatically described using the [codebook R package](https://rubenarslan.github.io/codebook/) (version 0.9.2).",
"keywords": ["participant_id", "lab", "trial_id", "stim_type", "stimulus", "stim_color", "response_time", "is_previous_congruent", "is_congruent", "is_correct", "mean_rt", "sd_rt", "cutoff_value_high", "cutoff_value_low", "is_outlier"],
"@context": "http://schema.org/",
"@type": "Dataset",
"variableMeasured": [
{
"name": "participant_id",
"description": "Unique identifier of the participant",
"@type": "propertyValue"
},
{
"name": "lab",
"description": "Unique identifier of the data collection site",
"@type": "propertyValue"
},
{
"name": "trial_id",
"description": "Unique identifier of a trial",
"@type": "propertyValue"
},
{
"name": "stim_type",
"description": "Congruency of the Stroop trial",
"@type": "propertyValue"
},
{
"name": "stimulus",
"description": "Word of the Stroop trial",
"@type": "propertyValue"
},
{
"name": "stim_color",
"description": "Ink of the Stroop trial",
"@type": "propertyValue"
},
{
"name": "response_time",
"description": "Response time to the Stroop trial in milliseconds",
"@type": "propertyValue"
},
{
"name": "is_previous_congruent",
"description": "Congruency of the previous trial",
"@type": "propertyValue"
},
{
"name": "is_congruent",
"description": "Congruency of the Stroop trial",
"@type": "propertyValue"
},
{
"name": "is_correct",
"description": "Correctness of the Stroop trial",
"@type": "propertyValue"
},
{
"name": "mean_rt",
"description": "Mean reaction time of the parcipant",
"@type": "propertyValue"
},
{
"name": "sd_rt",
"description": "Standard deviation of the reaction time of the participant",
"@type": "propertyValue"
},
{
"name": "cutoff_value_high",
"description": "Upper cutoff value for the trial",
"@type": "propertyValue"
},
{
"name": "cutoff_value_low",
"description": "Lower cutoff value for the trial",
"@type": "propertyValue"
},
{
"name": "is_outlier",
"description": "Flagging whether the trials' original response time was a low outlier (2), a high outlier (1) or not an outlier (0)",
"@type": "propertyValue"
}
]
}`